import QtQuick 2.0
import QtQuick.Controls.Styles 1.2

Component {
    id: tableViewStyle;
    TableViewStyle {
        backgroundColor: "#040d20";
        headerDelegate: Rectangle {
            height: 45; color: "#040d20"
            TextInput {
                anchors.fill: parent;
                verticalAlignment: Text.AlignVCenter;
                horizontalAlignment: styleData.textAlignment;
                font{ family: localFont.name; pointSize: 12; bold: false;}
                renderType: Text.NativeRendering; smooth: true;
                anchors.leftMargin: 12;
                text: styleData.value;
                readOnly: true;
                color: "#ffffff";
            }
        }
        rowDelegate: Rectangle { color: styleData.selected ? "#040d20" : !styleData.alternate ? "#040d20" : "#040d20"; height: 45; }
        itemDelegate: Item {
            clip: true;
            TextInput {
                width: parent.width;
                anchors.leftMargin: 12;
                anchors.left: parent.left;
                anchors.right: parent.right;
                anchors.verticalCenterOffset: 1;
                anchors.verticalCenter: parent.verticalCenter;
                horizontalAlignment: styleData.textAlignment;
                font{ family: localFont.name; pointSize: 12; bold: false;}
                text: styleData.value !== undefined ? styleData.value : "";
                renderType: Text.NativeRendering;
                readOnly: true;
                color: "#ffffff";
            }
        }
    }
}
